#include<bits/stdc++.h>

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int flag = 0;
    int i = 10;
    while (i <= 100) {
        if (i % 3 == a && i % 5 == b && i % 7 == c) {
            flag = 1;
            cout << i << endl;
            break;
        }
        i++;
    }
    if (flag == 0) {
        cout << "No answer" << endl;
    }


    return 0;
}
